#pragma once

#include "ArmyEntity.h"
#include "ArmyData.h"

class BossThreeEntity : public ArmyEntity {
public:
	int life;

	BossThreeEntity() {
		_armyData = new ArmyData();
		_armyData->canInteract = false;
		_armyData->isDead = false;
		life = 10;
		_armyData->rect = new Rect(_POSITION_X, _POSITION_Y, _OBS_BOSS_3_HEIGHT, _OBS_BOSS_3_WIDTH);
	}

	virtual void updateData(int type, int action) {
		life -= action;
		if (life <= 0 && !_armyData->isDead) {
			_armyData->canInteract = false;
			_armyData->isDead = true;
			EffectManager::getInstatnse()->createEffect(EffectType::TYPE_Bridge_Fier, _armyData->rect->X, _armyData->rect->Y);
		}
	}
};